{% load i18n %}

<div id="addTimetable">
    <form class="addTimetable" action="{% url "donutscheduler.views.addTimetable" %}" method="post">
    {% csrf_token %}
    {% for field in timetable_form %}
        {% if field.errors %}
            <div class="alert">
                <button type="button" class="close" data-dismiss="alert">&times;</button>
                {{ field.errors }}
            </div>
        {% endif %}
        {{ field.label_tag }}
        {{ field }}
    {% endfor %}
    <input type="submit" id="button_addTimetable" class="btn btn-primary" value="{% trans "ADD" %}">
    </form>
</div>
